Skip to main content

blurred-lines

Movies Preview

movies
blurred-lines


Published 2014


some fun with new ffmpeg filtergraph features.

I had wanted to make a fully lit (eg: sunny) video be more like a dimly lit and blurry video -- using just filtergraph time shifts and blends.
My plan/hope was to make areas of motion blur, and make areas that remained the same seem untouched.

it worked! 8-)

Original source was a shot of WWDC 2013 taken by Hunter Lee Brown.


Script/source code is below.
The gist of the code is to fidget the source to 10 seconds in, slightly smaller, and rotated 90 degrees.
Once have the source, split into 8 streams, each up to ~1 second apart, and "average" them in cascading pairs until back to one "merged from 8" streams again.
PTS == Presentation Time Stamp (timecode of each video packet in end-user time scale).
For original.mp4, 2002 * 7 == 14336 pts (which is about 1 second in wall-clock time).


#!/bin/bash -ex

# script designed to take an input video and blur/average each pixel *OVER TIME*
# using ffmpeg!



ffmpeg -y -i WWDC2013.HD.mp4 -ss 10 -vf 'scale=960x540,transpose=1' -c:a copy -b:v 4096k -movflags faststart original.mp4;



# NOTE: did "seekpoint=[3,6,9..21]" instead of "setpts=PTS-[...]" but not working (now?)
BASE=2002; # xxxx factor based upon any input's timebase!
let "SUB1=1*$BASE";
let "SUB2=2*$BASE";
let "SUB3=3*$BASE";
let "SUB4=4*$BASE";
let "SUB5=5*$BASE";
let "SUB6=6*$BASE";
let "SUB7=7*$BASE";


ffmpeg -y -i original.mp4 -c:a copy -shortest -b:v 4096k -movflags faststart -vf "
movie=original.mp4,setpts=PTS-$SUB1,setsar=0/1[t1];
movie=original.mp4,setpts=PTS-$SUB2,setsar=0/1[t2];
movie=original.mp4,setpts=PTS-$SUB3,setsar=0/1[t3];
movie=original.mp4,setpts=PTS-$SUB4,setsar=0/1[t4];
movie=original.mp4,setpts=PTS-$SUB5,setsar=0/1[t5];
movie=original.mp4,setpts=PTS-$SUB6,setsar=0/1[t6];
movie=original.mp4,setpts=PTS-$SUB7,setsar=0/1[t7];
[in]copy[t0];

[t0][t4]blend=average[t04];
[t1][t5]blend=average[t15];
[t2][t6]blend=average[t26];
[t3][t7]blend=average[t37];

[t04][t26]blend=average[t0246];
[t15][t37]blend=average[t1357];

[t0246][t1357]blend=average[out]
" blurred-lines.mp4;


Run time 21 seconds
Producer Tracey Jaquith
Production Company PoohBot Pictures
Audio/Visual sound, color

comment
Reviews

There are no reviews yet. Be the first one to write a review.
SIMILAR ITEMS (based on metadata)
eye
Title
Date Archived
Creator
PoohBot Pictures
by Tracey Jaquith
movies
eye 523
favorite 1
comment 0
PoohBot Pictures
movies
eye 3,357
favorite 0
comment 0
PoohBot Pictures
by tracey jaquith
image
eye 3,106
favorite 0
comment 0
PoohBot Pictures
movies
eye 2,667
favorite 0
comment 0
PoohBot Pictures
by Tracey Jaquith
movies
eye 2,102
favorite 0
comment 0
PoohBot Pictures
by Tracey Jaquith
movies
eye 268
favorite 0
comment 0
PoohBot Pictures
by Tracey Jaquith
movies
eye 230
favorite 0
comment 0
PoohBot Pictures
by Tracey Jaquith
audio
eye 1,327
favorite 0
comment 0
PoohBot Pictures
by Tracey Jaquith
movies
eye 1,528
favorite 0
comment 0
PoohBot Pictures
by Tracey Jaquith
movies
eye 326
favorite 0
comment 0